import { get, post, put, deletefn } from "@/utils/apiConfigs.js"

//用户管理管理员列表数据
export const getUserData = params => get('/users', params);

//添加用户提交
export const getAddData = params => post('/users', params)

//用户状态设置
export const getSaveState = (params, query) => put(`/users/${params}/state/${query}`)

//点击分配权限打开对话框并请求分配角色信息
export const getSetRole = (params) => get('/roles', params)

//// 提交分配角色请求
export const getColesRole = (params, query) => put(`/users/${params}/role`, query)

// 编辑提交用户数据
export const getPutEndit = (params, query) => put(`/users/${params}`, query)

//删除
export const getRemove = (id) => deletefn(`/users/${id}`)
